package com.YxyBackMange.Entity.App;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.hibernate.validator.constraints.Length;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Set;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 实体类AppDictCode
 * 数据表app_tb_dict_code
 * 数据字典表
 * 2017-12-3 3:47:31
 * @author Administrator
 *
 */
@Table(name = "app_tb_dict_code")
public class AppDictCode  implements Serializable {

		//编号
	@Id
	@GeneratedValue(generator = "JDBC")


	private Integer id;
		//关键字


	private Integer dkey;
		//字典类型


	private Integer dictTypeId;
		//关键值


	private String dvalue;
		//排序


	private Integer orders;
	@Transient
	private AppDictCodeType appDictCodeType;

	public AppDictCode(){

	}

	public AppDictCodeType getAppDictCodeType() {
		return appDictCodeType;
	}

	public void setAppDictCodeType(AppDictCodeType appDictCodeType) {
		this.appDictCodeType = appDictCodeType;
	}

	@Override
	public String toString() {
		return "AppDictCode{" + "id=" + id + ", dkey=" + dkey + ", dictTypeId=" + dictTypeId + ", dvalue='" + dvalue + '\'' + ", orders=" + orders + ", appDictCodeType=" + appDictCodeType + '}';
	}

	public AppDictCode(Integer id){
		this.id=id;
	}
	public void setId(Integer id){
		this.id=id;
	}

	public Integer getId(){
		return this.id;
	}
	public void setDkey(Integer dkey){
		this.dkey=dkey;
	}

	public Integer getDkey(){
		return this.dkey;
	}
	public void setDictTypeId(Integer dictTypeId){
		this.dictTypeId=dictTypeId;
	}

	public Integer getDictTypeId(){
		return this.dictTypeId;
	}
	public void setDvalue(String dvalue){
		this.dvalue=dvalue;
	}

	public String getDvalue(){
		return this.dvalue;
	}
	public void setOrders(Integer orders){
		this.orders=orders;
	}

	public Integer getOrders(){
		return this.orders;
	}


}
